package cn.jilian.sys.service;

import java.util.Collection;
import java.util.Map;

import cn.jilian.entity.Mace;
import cn.jilian.entity.Role;


public interface MaceService {
	
	Role createRole(Role role);

	Mace save(long uid,long fid,int act,long meta);
	
	int deleteRole(long role);
	
	int deleteRoles(Collection<Long> ids);
	
	int saveUserRoles(long uid,Collection<Long> adds,Collection<Long> dels);
	
	int saveMaces(long uid,Collection<Long> adds,Collection<Long> dels,Integer rank);
	
	int saveMaceMap(long uid,Map<Long,Integer> maceMap,Integer rank,Long meta);
	
	Collection<Long> getRoles(long uid);
	
	Collection<Long> getMaces(long uid,int rankId);
	
	Map<Long,Integer> getMaceMap(long uid,int rankId);
	
}
